import re

pattern = "yue"
string = "http://yum.iqianyue.xom"
result1 = re.search(pattern,string)
print(result1)

'''fsaf'''

pattern="\n"
string = '''http://yum.iqianyue.com
    http://baidu.com'''
result1 = re.search(pattern,string)
print(result1)
"""
    贪婪与懒惰模式
"""
pattern1 = "p.*y"
pattern2 = "p.*?y"





